package com.zzw.test;

public abstract class Tianjia {

    abstract void demo();

    Tianjia(){
        System.out.println("1");
        demo();
        System.out.println("2");
    }

    public static void main(String[] args) {
        new BB();
    }
}

class BB extends Tianjia{

    private int i = 100;
    @Override
    void demo() {
        System.out.println(i);
    }

    BB(){
        System.out.println("i" + i);
    }
}